Stateful and Stateless workflow